<template>
  <div class="input-field-list-view">
    <input-field
      v-for="(field, idx) in localData.Fields" :key="idx"
      :Field="field"
      :values="localData.data"
      @input="$emit('input')"
    ></input-field>
  </div>
</template>

<script>
import { InputFieldMixin } from 'eis-admin-mixins';

export default {
  name: 'InputFieldList',
  mixins: [InputFieldMixin],
  fieldInfo: {
    DataType: 'Object',
    Category: 'Advanced',
    Label: '字段列表展示',
    Value: 'FieldListView',
    Description: '',
  },
  data() {
    return {
      localData: {
        Fields: [],
        data: {},
      },
    };
  },
  watch: {
    localData() {
      this.fieldData = this.localData;
    },
    fieldData() {
      this.localData = this.fieldData;
    },
  },
  created() {
    this.localData = this.fieldData;
  },
  methods: {
  },
};
</script>
